/**
* 
* ====================================================================
*
* @author apov <apov@ymail.com>
*/ 
#pragma once

#include <BaseDefine.h>

#ifndef DEF_VC6

#include <curl/curl.h>
//#include <curl/types.h>
#include <curl/easy.h>

/**
* @class HttpUpload
*  - 
*/
class HttpUpload{
public:
	int upload_file( char* url, char* file );		

	HttpUpload();
	virtual ~HttpUpload();

protected:

private:
	static size_t callback_read_upload( void *ptr, size_t size, size_t nmemb, void* stream );	

	CURL* handle_;
};

#endif